<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>{:C('SERVER_NAME')}</title>
	<link rel="stylesheet" type="text/css" href="__PUBLICADMIN__/css/style.css">
</head>
<body>
	<div class="content p50">
		<div class="content-title"><h2><if condition="$_GET['id'] gt 0">修改<else/>添加</if>代写类别</h2></div>
		<div class="change">
			<form action="__URL__/editTypeForm.html" method="post" onsubmit="return beforeSubmit(this)">

				<div class="form-group"><span class="form-title">类别名称：</span><div class="form-text"><input type="text" name="title" value="{$type.title}"></div></div>		
				<div class="form-group">
					<span class="form-title">状态：</span>
					<if condition="$type['status'] eq 0">
						<sapn class="form-radio">开启&nbsp; <input type="radio" name="status" value="1"></sapn>
						<span class="form-radio">关闭&nbsp; <input type="radio" name="status" value="0" checked></span>	
					<else/>	
						<sapn class="form-radio">开启&nbsp; <input type="radio" name="status" value="1" checked></sapn>
						<span class="form-radio">关闭&nbsp; <input type="radio" name="status" value="0"></span>	
					</if>
				</div>

				<div class="form-group">
					<input type="hidden" name="id" value="{$type.id}">
					<input type="submit" value="提交" class="form-btn">
				</div>
			</form>
		</div>
	</div>
	<include file="Public/ok"/>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.min.js"></script>
	<script type="text/javascript" src="__PUBLICADMIN__/js/page.js"></script>
	<script type="text/javascript">
	
		function beforeSubmit(form){

			if(form.title.value==""){
				prompting("请填写类别名称");
				return false;
			}
			return true;
		}
	</script>
</body>
</html>